
package com.joysuch.wwyt.dataimport.patch.controller;

import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.dataimport.patch.service.EvaluationRecordAddToRepoPatch;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/patch")
public class PatchController {
    @Autowired
    private EvaluationRecordAddToRepoPatch evaluationRecordAddToRepoPatch;

    @RequestMapping("/patch-evaluation-repo")
    public Object patchEvaluationRepo() {
        int patch = evaluationRecordAddToRepoPatch.patch();
        return ResultBean.success(patch);
    }
}
